package com.yc.game.pojo;

import java.util.Date;

public class Cart {
    /** 自增主键 */
    private Integer id;

    /** 食品名称 */
    private String foodName;

    /** 单价 */
    private Double price;

    /** 总价 */
    private Double totalPrice;

    /** 图片地址 */
    private String foodImg;

    /** 数量 */
    private Integer quantity;

    /** 邮箱 */
    private String email;

    /** 食品ID */
    private Integer foodId;

    /** 创建时间 */
    private Date createTime;

    /** 更新时间 */
    private Date updateTime;

    public Cart(Integer id, String foodName, Double price, Double totalPrice, String foodImg, Integer quantity, String email, Integer foodId, Date createTime, Date updateTime) {
        this.id = id;
        this.foodName = foodName;
        this.price = price;
        this.totalPrice = totalPrice;
        this.foodImg = foodImg;
        this.quantity = quantity;
        this.email = email;
        this.foodId = foodId;
        this.createTime = createTime;
        this.updateTime = updateTime;
    }

    public Cart() {
        super();
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getFoodName() {
        return foodName;
    }

    public void setFoodName(String foodName) {
        this.foodName = foodName == null ? null : foodName.trim();
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getTotalPrice() {
        return totalPrice;
    }

    public void setTotalPrice(Double totalPrice) {
        this.totalPrice = totalPrice;
    }

    public String getFoodImg() {
        return foodImg;
    }

    public void setFoodImg(String foodImg) {
        this.foodImg = foodImg == null ? null : foodImg.trim();
    }

    public Integer getQuantity() {
        return quantity;
    }

    public void setQuantity(Integer quantity) {
        this.quantity = quantity;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email == null ? null : email.trim();
    }

    public Integer getFoodId() {
        return foodId;
    }

    public void setFoodId(Integer foodId) {
        this.foodId = foodId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public Date getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(Date updateTime) {
        this.updateTime = updateTime;
    }
}